
const tokenUser = "token-user"

export function getUserInfo() {
  return localStorage.getItem(tokenUser) ? JSON.parse(localStorage.getItem(tokenUser)) : {}
}

export function setUserInfo(userInfo) {
  return localStorage.setItem(tokenUser,JSON.stringify(userInfo))
}

export function removeUserInfo(){
  return localStorage.removeItem(tokenUser)
}

